package com.fan.shop.dao;

import java.util.List;

import com.fan.shop.domain.Category;

public interface CategoryDao {

	public Category getCategory(String name);
	public Category getCategory(Integer id);

	public List<Category> getAllCategories();

	public int getSize();

	public void addCategory(Category category);

	public void updateCategory(Category category);

	public void deleteCategory(Category category);
	
	public boolean hasCategory(String name);
	public List<Category> getRootCategories();
	public List<String> getColumnNames();
	
	public Category getCategoryByName(String name);
}
